package com.king.run.activity.other;

import android.os.Bundle;
import android.os.Handler;

import com.king.run.R;
import com.king.run.base.BaseActivity;
import com.king.run.view.StepArcView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.ViewInject;

@ContentView(R.layout.activity_main)
public class MainActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initData();
    }

    private void initData() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
//                int userId = PrefName.getUserId(MainActivity.this);
//                if (userId == -1)
//                    jumpActvity(LoginActivity.class);
//                else
                jumpActvity(HomeActivity.class);
                finish();
            }
        }, 2000);
    }
}
